hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
authorKeir Fraser <keir@xensource.com>
Mon, 1 Oct 2007 14:12:05 +0000 (15:12 +0100)
committerKeir Fraser <keir@xensource.com>
Mon, 1 Oct 2007 14:12:05 +0000 (15:12 +0100)
commit74f3e60d7c183512d4acf94fc962e6c7c97a33b5
treed7ff10769059f2fdd09a40784f46158df7d785c4
parent0d5d622244c89e86a9046cb7cd99e7adecf8af53
hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
pre-setting the vcpu0 to runnable inside Xen, and have the builder
insert a JMP instruction to reach the hvmloader entry point from
address 0x0.
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/libxc/xc_hvm_build.c
xen/arch/x86/hvm/hvm.c